/* =========================
   Base Styles & Variables
   ========================= */
:root {
    --primary-blue: #0000FF;
    --dark: #181818;
    --light: #f8f9fa;
    --gray: #e0e0e0;
    --transition: 0.3s cubic-bezier(.4,0,.2,1);
    --radius: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --max-width: 1200px;
    --footer-bg: #000000;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    margin: 0;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* Header, Navbar, Footer, Responsive: copy from style\style-index.css */
.top-bar {
    background: var(--primary-blue);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 2vw;
    font-size: 0.95rem;
}
.top-bar .contact-info span { margin-right: 1.5rem; }
.top-bar .social-icons a { color: #fff; margin-left: 1rem; transition: color var(--transition); }
.top-bar .social-icons a:hover { color: #ffd700; }

.navbar {
    background: #fff;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 2vw;
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo a { color: var(--primary-blue); font-size: 1.5rem; font-weight: bold; text-decoration: none; letter-spacing: 1px; }
.navbar-logo {
    display: block;
    max-height: 48px;
    width: auto;
    object-fit: contain;
}
.nav-links { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; }
.nav-links li { position: relative; }
.nav-links a { color: var(--dark); text-decoration: none; padding: 0.7rem 1.2rem; font-weight: 500; transition: color var(--transition); border-radius: var(--radius); }
.nav-links a:hover, .nav-links .btn-devis { color: #fff; background: var(--primary-blue); }
.btn-devis { margin-left: 1rem; font-weight: bold; border-radius: var(--radius); transition: background var(--transition); }
.dropdown .dropbtn { display: flex; align-items: center; gap: 0.3em; }
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.dropdown-content {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 320px; /* Increased for better visualization of long service names */
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    top: 100%;
    left: 0;
    z-index: 10;
    flex-direction: column;
    padding: 0.5rem 0;
}
.dropdown-content li { width: 100%; list-style: none; margin: 0; padding: 0; background: none; }
.dropdown-content a { color: var(--dark); padding: 0.7rem 1.2rem; display: block; border-radius: 0; background: none; transition: background var(--transition), color var(--transition); }
.dropdown-content a:hover { background: var(--primary-blue); color: #fff; }
.dropdown:hover .dropdown-content { display: flex; }.dropdown.open .dropdown-content { display: flex; }
.menu-toggle { display: none; font-size: 1.7rem; color: var(--primary-blue); cursor: pointer; }

footer {
    background: var(--footer-bg);
    color: #fff;
    padding: 2.5rem 0 0.5rem 0;
    margin-top: 3rem;
}
.footer-container { max-width: var(--max-width); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; padding: 0 2vw; }
.footer-logo-desc { flex: 1 1 250px; min-width: 220px; margin-bottom: 1.5rem; }
.footer-logo { width: 160px; height: auto; margin-bottom: 1rem; background: #fff; border-radius: var(--radius); object-fit: contain; box-shadow: 0 2px 12px rgba(0,0,0,0.10); border: 2px solid #e0e0e0; padding: 8px 16px; display: block; }
.footer-services { flex: 1 1 220px; min-width: 200px; margin-bottom: 1.5rem; }
.footer-services h4 { margin-bottom: 1rem; color: #fff; }
.services-columns { display: flex; gap: 1rem; }
.services-columns ul { list-style: none; padding: 0; margin: 0; }
.services-columns li { margin-bottom: 0.7rem; font-size: 1rem; }
.footer-contact { flex: 1 1 280px; min-width: 220px; margin-bottom: 1.5rem; }
.footer-contact h4 { margin-top: 1.2rem; margin-bottom: 0.7rem; color: #fff; }
.footer-contact p { margin: 0.3rem 0; font-size: 1rem; }
.map-container { width: 100%; height: 120px; margin: 0.7rem 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-container iframe { width: 100%; height: 100%; border: 0; }
.footer-bottom { text-align: center; color: #bbb; font-size: 0.95rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #333; }
.footer-quicklinks ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-quicklinks li {
    margin-bottom: 0.7rem;
    font-size: 1rem;
}
.footer-quicklinks a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}
.footer-quicklinks a:hover {
    text-decoration: underline;
    color: #ffd700;
}
.footer-services ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-services li {
    margin-bottom: 0.7rem;
    font-size: 1rem;
}
.footer-services li,
.footer-services a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}
.footer-services li:hover,
.footer-services a:hover {
    text-decoration: underline;
    color: #ffd700;
}

@media (max-width: 1024px) {
    .footer-container { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
}
@media (max-width: 800px) {
    .footer-logo { width: 110px; }
}
@media (max-width: 700px) {
    .footer-logo-desc {
    flex: 1 1 100px;
    min-width: 220px;
    margin-bottom: 0;
    }
    .footer-container {
        flex-direction: column;
        gap: 0rem;
        align-items: flex-start;
    }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 4vw;
    position: relative;
  }

  .menu-toggle {
    display: block;
    font-size: 1.7rem;
    color: var(--primary-blue);
    cursor: pointer;
    position: absolute;
    right: 2vw;
    top: 1.1rem;
  }

  .nav-links {
    display: none; /* caché par défaut */
    flex-direction: column;
    width: 100%;
    background: #fff;
    gap: 0.7rem;
    padding-top: 1rem;
  }

  .nav-links.open {
    display: flex; /* affiché si on ajoute la classe .open */
  }

  .nav-links li {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .nav-links a {
    width: 100%;
    padding: 1.2rem 2vw;
    box-sizing: border-box;
  }

  .nav-links .btn-devis {
    margin-top: 0.5rem;
    margin-left: 0;
    width: 95%;
    display: block;
    text-align: center;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    min-width: 100%;
  }
  
}

@media (max-width: 500px) {
    .top-bar { flex-direction: column; align-items: flex-start; font-size: 0.9rem; padding: 0.3rem 4vw; }
    .footer-logo { width: 90px; }
}

/* =========================
   footer centering for mobile
   ========================= */

@media (max-width: 700px) {
    .services-columns {
    display: flex;
    gap: 0;
    flex-direction: column;
    }
    .footer-logo {
        margin: auto;
        width: 50%;
    }
    .footer_p_center{
        text-align: center;
        margin: auto;
        width: auto;
    }
}

/* =========================
   end of footer centering for mobile 
   ========================= */

/* Harmonisation header/footer avec les autres pages */
.top-bar .contact-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    margin-right: 1.5rem;
    font-size: 0.95rem;
    transition: color 0.2s, text-decoration 0.2s;
}
.top-bar .contact-link:last-child {
    margin-right: 0;
}
.top-bar .contact-link i {
    margin-right: 0.4em;
    font-size: 1em;
}
.top-bar .contact-link:hover,
.top-bar .contact-link:focus {
    color: #ffd700;
    text-decoration: underline;
    outline: none;
}

.footer-logo-link {
    display: inline-block;
}
.footer-logo-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}
.footer-brand-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}
.footer-brand-link:hover,
.footer-brand-link:focus {
    color: var(--primary-blue);
    text-decoration: underline;
    outline: none;
}

/* Spécifique : liens contact-link dans le footer */
footer .contact-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}
footer .contact-link:hover,
footer .contact-link:focus {
    color: #ffd700;
    text-decoration: underline;
    outline: none;
}

/* =========================
   Contact Section Styles
   ========================= */
.contact-section {
    max-width: 520px;
    margin: 3.5rem auto 2.5rem auto;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 6px 32px rgba(0,0,0,0.10);
    padding: 2.5rem 2rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.contact-title {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.contact-intro {
    color: #444;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    animation: fadeInUp 1.1s cubic-bezier(.4,0,.2,1);
}
.form-row {
    display: flex;
    gap: 1.2rem;
}
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.form-group.full-width {
    flex: 2;
    width: 100%;
}
label {
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--primary-blue);
}
input, textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--gray);
    border-radius: var(--radius);
    font-size: 1rem;
    background: #f9f9ff;
    color: var(--dark);
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
    resize: none;
}
input:focus, textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 12px rgba(0,0,255,0.08);
}
input:hover, textarea:hover {
    border-color: #0000002ff;
}
.contact-btn {
    margin-top: 1.2rem;
    padding: 0.9rem 2.5rem;
    background: var(--primary-blue);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}
.contact-btn:hover {
    background: #0000002ff;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    transform: scale(1.04);
}

/* Animation for form reveal */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-reveal {
    opacity: 0;
    animation: fadeInUp 1.1s cubic-bezier(.4,0,.2,1) forwards;
}

/* Responsive for contact form */
@media (max-width: 700px) {
    .contact-section {
        max-width: 98vw;
        padding: 1.2rem 0.5rem 1.5rem 0.5rem;
    }
    .form-row {
        flex-direction: column;
        gap: 0.7rem;
    }
}

.form-message {
  margin: 1em 0;
  padding: 1em;
  border-radius: 5px;
  font-weight: 500;
  font-size: 1.05em;
  display: block;
  transition: all 0.3s;
}
.form-message.success {
  background: #e6f9ed;
  color: #217a3a;
  border: 1px solid #b6e2c6;
}
.form-message.error {
  background: #fff0f0;
  color: #b30000;
  border: 1px solid #f5bcbc;
}
.input-error {
  border-color: #b30000 !important;
  background: #fff6f6;
  transition: border-color 0.2s, background 0.2s;
}
